Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Jan 23, 2025

Which issue does this PR close?

Rationale for this change

While reviewing #14223 I misinterpreted the impact of a change.
@jonahgao straightened me out in https://github.com/apache/datafusion/pull/14223/files#r1926245243 and had a good suggestion of how to test the behavior (don't overly extend the output types)

So let's add some tests to automatically ensure the coercion is working correctly

What changes are included in this PR?

Add tests that show the output type of arithmetic operations with different input types

Are these changes tested?

It is only tests, no behavior change

Are there any user-facing changes?

@alamb alamb marked this pull request as ready for review January 23, 2025 14:37
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Jan 23, 2025
Copy link
Member

@jonahgao jonahgao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @alamb

@jonahgao jonahgao merged commit a534e85 into apache:main Jan 24, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants